我认为这是一项简单的任务,但它变得非常复杂。请参阅代码。//Convert"rgb(255,255,255)"to(255,255,255)andthentoHexcodevardata={color:"rgb(165,199,72)",color:"rgb(229,121,74)",color:"rgb(105,177,222)"}//rgbToHexConversionvarcomponentToHex=function(c){varhex=c.toString(16);returnhex.length==1?"0"+hex:hex;}varrgbHex=function(r,g,
考虑这个数组:[["B","C","C","C","C","B","B","C","A","A"],["B","A","C","B","B","A","B","B","A","A"],["B","C","B","C","A","A","A","B","C","B"],["B","B","B","A","C","B","A","C","B","A"],["A","A","A","C","A","C","C","B","A","C"],["A","B","B","A","A","C","B","C","C","C"],["C","B","A","A","C","B","B","C","A"